package com.zjj.day5;

import java.util.Scanner;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/22
 */
public class WPSTest {
    public void choose(WPSType type) {
        switch (type) {
            case PPT:
                System.out.println("PPT 开档");
                break;
            case WORD:
                System.out.println("WORD 开档");
                break;
            case EXCEL:
                System.out.println("EXCEL 开档");
                break;
            case XMIND:
                System.out.println("XMIND 开档");
                break;
            default:
                System.out.println("有误");
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要开档的文件类型（WORD、PPT、EXCEL、XMIND）：");
        String input = scanner.nextLine();
        WPSType wpsType = WPSType.valueOf(input);
        WPSTest test = new WPSTest();
        test.choose(wpsType);
    }
}

enum WPSType{
    WORD , PPT ,EXCEL , XMIND;
}